import request from '@/utils/request'

// 创建指标 /admin-api/report/indicator/create
export function createIndicator(data) {
    return request({
        url: '/admin-api/report/indicator/create',
        method: 'post',
        data
    })
}

// 获取指标列表 /admin-api/report/indicator/list
export function getIndicatorList(params) {
    return request({
        url: '/admin-api/report/indicator/page',
        method: 'get',
        params
    })
}


// 更新指标
export function updateIndicator(data) {
    return request({
        url: '/admin-api/report/indicator/update',
        method: 'put',
        data
    })
}

// 删除指标
export function deleteIndicator(id) {
    return request({
        url: '/admin-api/report/indicator/delete?id=' + id,
        method: 'delete'
    })
}
